how to use PSRemoting with ip as target¶
[system.net.dns]::gethostbyname("chenshi.de")server:
winrm quickconfig winrm enumerate winrm/config/listener #winrm delete winrm/config/Listener?Address=*+Transport=HTTPclient:
Set-Item WSMan:\localhost\Client\TrustedHosts -Force -Value server Get-Item WSMan:\localhost\Client\TrustedHosts #Clear-Item WSMan:\localhost\Client\TrustedHosts